// Add a listener for messages from script.js.
chrome.extension.onConnect.addListener(function(port) {
  port.onMessage.addListener(function(data) {
    if (data.message == "new_term") {
      ProcessWord(data.word);
    }
  });
});

function ProcessWord(word) {
  alert('page loaded');
}

